package com.xuyiwei.xblog.modular.system.warpper;

import com.xuyiwei.xblog.business.system.model.Link;
import com.xuyiwei.xblog.core.base.constant.enums.CommonStatusEnum;
import com.xuyiwei.xblog.core.base.warpper.BaseControllerWarpper;
import com.xuyiwei.xblog.core.common.constant.factory.ConstantFactory;

import java.util.List;
import java.util.Map;

/**
 * Created by xuyiwei on 2018/12/2.
 */
public class LinkWarpper extends BaseControllerWarpper {
    public LinkWarpper(List<Link> list) {
        super(list);
    }
    @Override
    protected void warpTheMap(Map<String, Object> map) {
        map.put("status", CommonStatusEnum.convert((Integer) map.get("status")).getDesc());
        map.put("homePageDisplay", CommonStatusEnum.convert((Integer) map.get("homePageDisplay")).getDesc());
    }
}
